﻿<%@ control language="C#" autoeventwireup="true" inherits="ModulesMembership_wucUsersGroups, MCWF" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

        <table border="0" cellpadding="0" cellspacing="0" align="center" width="790px" height="10px">
            <tr>
                <td height="10px" align="center" valign="middle">
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" align="center" width="790px" height="50px"
            class="ToolbarStyle">
            <tr>
                <td valign="middle" align="left" width="440px">
                    <table border="0" cellpadding="0" width="100%" cellspacing="0" height="50px">
                        <tr>
                            <td width="10px">
                                &nbsp;
                            </td>
                            <td align="left" class="ToolbarText" valign="middle">
                                &nbsp;<asp:Label ID="lblFunctionTitle" runat="server">QUẢN LÝ NGƯỜI DÙNG TRONG ROLE</asp:Label>
                                <asp:Label ID="lblControlState" runat="server" Visible="false">NOMAL</asp:Label>
                            </td>
                            <td width="10px">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
                <td align="right" valign="middle">
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" align="center" width="790px" height="10px">
            <tr>
                <td height="10px" align="center" valign="middle">
                    <asp:Label ID="Label1" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>
                </td>
            </tr>
        </table>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="790" class="MultiPage">
            <tbody>
                <tr height="30px">
                    <td align="right">
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#f0f2f4">
                            <tbody>
                                <tr height="30px">
                                    <td align="right" valign="middle">
                                        Role Name: &nbsp;
                                    </td>
                                    <td align="right" valign="middle" width="205px">
                                        <telerik:RadComboBox ID="rcbRoleName" runat="server" ShowToggleImage="True" Skin="Vista"
                                            Width="200px" AutoPostBack="True" OnSelectedIndexChanged="rcbRoleName_SelectedIndexChanged">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td width="2px">
                                        &nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="middle">
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="790">
                            <tbody>
                                <tr height="20px">
                                    <td align="center" valign="middle">
                                        <b>
                                            <asp:Label ID="lblDetailMode" runat="server" ForeColor=red></asp:Label></b><asp:Label ID="Label3"
                                                runat="server" Visible="False"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="center">
                                                    Danh sách người dùng</td>
                                                <td width="50px">
                                                </td>
                                                <td align="center">
                                                    Danh sách người dùng trong role</td>
                                            </tr>
                                            <tr>
                                                <td height="10">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <telerik:RadGrid ID="rgrdGridDataListUser" runat="server" Skin="WebBlue" Width="370px"
                                                        PageSize="15" AllowMultiRowSelection="true" AllowPaging="True" ShowGroupPanel="false"
                                                        AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                                                        BorderWidth="0px" GridLines="Both" AutoGenerateColumns="false" OnPageIndexChanged="rgrdGridDataListUser_PageIndexChanged"
                                                        AllowSorting="false">
                                                        <ClientSettings EnablePostBackOnRowClick="True">
                                                            <Selecting AllowRowSelect="True" />
                                                        </ClientSettings>
                                                        <PagerStyle Mode="NextPrevAndNumeric" NextPagesToolTip="Trang sau" NextPageToolTip="Trang sau"
                                                            PagerTextFormat="Lựa chọn trang: {4} &amp;nbsp;Trang {0} / {1}, bản ghi {2} - {3} / {5}."
                                                            PrevPagesToolTip="Trang trước" PrevPageToolTip="Trang trước" />
                                                        <MasterTableView DataKeyNames="UserName">
                                                            <RowIndicatorColumn Visible="False">
                                                                <HeaderStyle Width="20px" />
                                                            </RowIndicatorColumn>
                                                            <ExpandCollapseColumn Resizable="False" Visible="False">
                                                                <HeaderStyle Width="20px" />
                                                            </ExpandCollapseColumn>
                                                            <EditFormSettings>
                                                                <PopUpSettings ScrollBars="None" />
                                                            </EditFormSettings>
                                                            <Columns>
                                                                <telerik:GridClientSelectColumn UniqueName="SelectRow">
                                                                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </telerik:GridClientSelectColumn>
                                                                <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" ReadOnly="True"
                                                                    UniqueName="UserName">
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email"
                                                                    ReadOnly="true" ItemStyle-HorizontalAlign="left">
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                    <ItemStyle HorizontalAlign="left" />
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                    </telerik:RadGrid>
                                                </td>
                                                <td width="50px" align="center">
                                                    &nbsp;&nbsp;<asp:ImageButton ID="ibtnSubmitAll" AlternateText="Thêm toàn bộ" runat="server"
                                                        ImageUrl="~/Images/icons/nextall.png" Width="24px" Height="24px" CausesValidation="true"
                                                        ToolTip="Thêm toàn bộ người dùng vào role" OnClick="ibtnSubmitAll_Click" />&nbsp;&nbsp;
                                                    <br />
                                                    <br />
                                                    &nbsp;&nbsp;<asp:ImageButton ID="ibtnSubmit" AlternateText="Thêm" runat="server"
                                                        ImageUrl="~/Images/icons/next.png" Width="24px" Height="24px" CausesValidation="true"
                                                        ToolTip="Thêm người dùng vào role" OnClick="ibtnSubmit_Click" />&nbsp;&nbsp;
                                                    <br />
                                                    <br />
                                                    &nbsp;&nbsp;<asp:ImageButton ID="ibtnDelete" AlternateText="Xóa" runat="server" ImageUrl="~/Images/icons/previous.png"
                                                        Width="24px" Height="24px" CausesValidation="false" ToolTip="Xóa người dùng khỏi role"
                                                        OnClick="ibtnDelete_Click" />
                                                    &nbsp;&nbsp;
                                                    <br />
                                                    <br />
                                                    &nbsp;&nbsp;<asp:ImageButton ID="ibtnDeleteAll" AlternateText="Xóa toàn bộ" runat="server"
                                                        ImageUrl="~/Images/icons/previousall.png" Width="24px" Height="24px" CausesValidation="false"
                                                        ToolTip="Xóa toàn bộ người dùng khỏi role" OnClick="ibtnDeleteAll_Click" />
                                                &nbsp;&nbsp;
                                                <td valign="top">
                                                    <telerik:RadGrid ID="rgrdGridDataListUserInRole" runat="server" Skin="WebBlue" Width="370px"
                                                        PageSize="15" AllowMultiRowSelection="true" AllowPaging="True" ShowGroupPanel="false"
                                                        AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                                                        BorderWidth="0px" GridLines="Both" AutoGenerateColumns="false" OnPageIndexChanged="rgrdGridDataListUserInRole_PageIndexChanged"
                                                        AllowSorting="false">
                                                        <ClientSettings EnablePostBackOnRowClick="True">
                                                            <Selecting AllowRowSelect="True" />
                                                        </ClientSettings>
                                                        <PagerStyle Mode="NextPrevAndNumeric" NextPagesToolTip="Trang sau" NextPageToolTip="Trang sau"
                                                            PagerTextFormat="Lựa chọn trang: {4} &amp;nbsp;Trang {0} / {1}, bản ghi {2} - {3} / {5}."
                                                            PrevPagesToolTip="Trang trước" PrevPageToolTip="Trang trước" />
                                                        <MasterTableView DataKeyNames="UserName">
                                                            <RowIndicatorColumn Visible="False">
                                                                <HeaderStyle Width="20px" />
                                                            </RowIndicatorColumn>
                                                            <ExpandCollapseColumn Resizable="False" Visible="False">
                                                                <HeaderStyle Width="20px" />
                                                            </ExpandCollapseColumn>
                                                            <EditFormSettings>
                                                                <PopUpSettings ScrollBars="None" />
                                                            </EditFormSettings>
                                                            <Columns>
                                                                <telerik:GridClientSelectColumn UniqueName="SelectRow">
                                                                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </telerik:GridClientSelectColumn>
                                                                <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" ReadOnly="True"
                                                                    UniqueName="UserName">
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email"
                                                                    ReadOnly="true" ItemStyle-HorizontalAlign="left">
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                    <ItemStyle HorizontalAlign="left" />
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>                               
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table> 